home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Eliminator / Eliminator.jar / Eliminator.class (.txt) next >
Encoding:
Java Class File  |  2002-04-11  |  1.6 KB  |  35 lines

  1. import javax.microedition.lcdui.Alert;
  2. import javax.microedition.lcdui.Display;
  3. import javax.microedition.midlet.MIDlet;
  4.  
  5. public class Eliminator extends MIDlet {
  6.    private Display display = Display.getDisplay(this);
  7.    private MyCanvas canvas = new MyCanvas(this);
  8.    private Alert alert = new Alert("Eliminator v1.1");
  9.  
  10.    protected void startApp() {
  11.       this.display.setCurrent(this.canvas);
  12.    }
  13.  
  14.    protected void pauseApp() {
  15.    }
  16.  
  17.    protected void destroyApp(boolean var1) {
  18.    }
  19.  
  20.    public void exitMIDlet() {
  21.       this.destroyApp(true);
  22.       ((MIDlet)this).notifyDestroyed();
  23.    }
  24.  
  25.    public void showInfo() {
  26.       this.alert.setString("2/8 : Up/Down\n4/6 : Left/Right\n1/7 : Prev.Level\n3/9 : Next Level\n* : Saved Solution\n# : Next Solusion");
  27.       this.display.setCurrent(this.alert);
  28.    }
  29.  
  30.    public void showAbout() {
  31.       this.alert.setString("Eliminator MIDP Demo version by RizaPN\n\nEliminator is a game to destroy all object by moving it to 4 direction. One single move will move all object together. Object will be dissapear if there are horizontal/vertical consecutive objects. Full version has 40 game levels.\n\nPlease enjoy,\nSalam, RizaPN\nJakarta-Indonesia");
  32.       this.display.setCurrent(this.alert);
  33.    }
  34. }
  35.